<include file="Public:header" />

<style>
@media (min-width: 50px){
	     .nav-justified>li{
		display: table-cell;
		width: 1%;
	}
	   }
.panel-body {
    padding: 5px 5px;
}
.panel{margin-bottom:0px;}
.nav-justified>li>a{margin-bottom:0; border-radius:0;}
</style>


     <div style="padding:10px; padding-bottom:0px; width:100%;">
      <ul class="nav nav-pills nav-justified" style="border:1px solid #bce8f1;background:#fff;">
          <li role="presentation" <if condition="$state eq 0">class="active"</if>><a href="{:U('Order/index')}">所有订单</a></li>
          <li role="presentation" <if condition="$state eq 2">class="active"</if>><a href="{:U('Order/index',array('state'=>2))}">已付款</a></li>
          <li role="presentation" <if condition="$state eq 3">class="active"</if>><a href="{:U('Order/index',array('state'=>3))}">已发货</a></li>
      </ul>
    </div>
   <volist name="list" id="vo"> 
    <div class="order" style="padding:10px 5px;"> 
      <div class="panel panel-info">
        <div class="panel-heading">订单号:{$vo.ordernumber}
        <div style=" float:right;"><if condition="$vo.status eq 0"><strong style="color:red;">退货</strong><elseif condition="$vo.status eq 1"/><strong style="color:red;">待付款</strong><elseif condition="$vo.status eq 2"/><strong>已付款</strong><elseif condition="$vo.status eq 3"/><strong>已发货</strong><else /><strong>已完成</strong></if></div></div>
        
<div class="panel-body" style="background:#fff;">
           
          <div class="media">
  <div class="media-left media-middle">
    
      <a href="{:U('Order/read',array('id'=>$vo['id']))}"><img style="border:1px solid #eee; padding:1px;" src="__PUBLIC__{$vo.sale.0.img_url}" width="80" height="80"> </a> 
    
  </div>
  <div class="media-body" style="position:relative;">
    <h4 class="media-heading" style="color:#999;">{$vo.sale.0.title}</h4>
<p><span style="color:#333; font-family:'微软雅黑';">订单金额:</span><strong style="color:#f00; font-weight:bold; font-family:Arial;">¥{$vo.total}</strong></p>
  </div>
   
   
  
</div>
  

   <div style=" float:right;">
     <if condition="$vo.status eq 1">
            <a href="{:U('pay', array('id' => $vo['id']))}" class="btn btn-success">去支付</a>
            
            
            <a href="{:U('cancel', array('id' => $vo['id']))}" onClick="return confirm('确定要取消该订单吗？');" class="btn btn-default">取消订单</a></if>
            <if condition="$vo.status eq 2">
            <a href="{:U('Order/read',array('id'=>$vo['id']))}" class="btn btn-danger">申请售后</a>
            </if>
     <if condition="$vo.shipping_status eq 1 or $vo.shipping_status eq 2">
            <a class="btn btn-success" href="{:U('Order/read',array('id'=>$vo['id']))}">查看物流</a>
    </if>
   </div>
   <div style="clear:both;"></div>
    
         
        </div>
      </div>
    </div>
   </volist>

<div style="text-align:center;">{$pages}</div>


<include file="Public:footer" />